﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

using agsXMPP;

namespace JabberVK
{
    public partial class frMain : Form
    {
        private XmppClientConnection XmppCon;
        public frMain()
        {
            InitializeComponent();
        }

        private void loginToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frLogin f = new frLogin(XmppCon);
            if (f.ShowDialog() == DialogResult.OK)
            {
                XmppCon.Open();
            }
        }

        private void exitToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void disconnectToolStripMenuItem_Click(object sender, EventArgs e)
        {
            XmppCon.Close();
        }
    }
}
